package com.hylc.biz.ui.arouter;

import static com.xls.commonlibrary.arouter.path.APath.BIZ_IBIZPROVIDERIMPL;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.hjq.toast.Toaster;
import com.xls.commonlibrary.BuildConfig;
import com.xls.commonlibrary.arouter.provider.IBizProvider;

import org.greenrobot.eventbus.EventBus;

@Route(path = BIZ_IBIZPROVIDERIMPL)
public class IBizProviderImpl implements IBizProvider {


    @Override
    public void init(Context context) {

    }

    @Override
    public String foo(String param) {
        // test foo

        if (BuildConfig.DEBUG) {
//            Toaster.show("IBizProviderImpl foo called:" + param);
        }

        // todo EventBus post in this Module
        // EventBus.getDefault().post(null);

        // todo etc

        return param;
    }
}
